<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>添加文章</title>
  <link rel="stylesheet" type="text/css" href="<?php echo base_url().'public/admin';?>/css/hdui.css">
    <style type="text/css">
		.checkbox{
			 margin-left:5px;
			 width:90px;
			 margin-top: 10px;
		}
		textarea{
			width: 300px;
			height: 100px;
		}
    </style>
    <script type="text/javascript" charset="utf-8" src="<?php echo base_url().'public/admin';?>/ueditor1_4_3/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo base_url().'public/admin';?>/ueditor1_4_3/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="<?php echo base_url().'public/admin';?>/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<script>
    var ue = UE.getEditor('editor');
</script>
<div class="wrap">
    <div class="title-header">添加问题</div>
    <form action="" method="POST" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">问题分类</th>
                <td>
                    <select name="cid" class="w200">
                        <?php foreach($cate as $v):?>
                            <option value="<?php echo $v['id']?>"><?php echo $v['qname']?></option>
                        <?php endforeach;?>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">问题标题</th>
                <td class="w100">
                    <input type="text" name="title" class="w200"/>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">问题内容</th>
                 <td colspan="2">
                     <script id="editor" type="text/plain" name="content"
                             style="width:100%;height:300px;"></script>
                 </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
        
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="添加"/>
        </div>
    </form>
</div>
</body>
</html>